From 69fadcf9f6418553a8f324dffe02eafaedd30327 Mon Sep 17 00:00:00 2001 From: Mikkel Kroman Date: Mon, 16 May 2016 20:56:40 +0200 Subject: [PATCH] Change `cargo test --doc` test to match stdout --- tests/test_cargo_test.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_cargo_test.rs b/tests/test_cargo_test.rs index 22b824149..782692a36 100644 --- a/tests/test_cargo_test.rs +++ b/tests/test_cargo_test.rs @@ -2071,5 +2071,14 @@ test!(only_test_docs { p.build(); assert_that(p.cargo("test").arg("--doc"), - execs().with_status(0)); + execs().with_status(0).with_stdout(&format!("\ +[COMPILING] foo v0.0.1 ([..]) +[DOCTEST] foo + +running 1 test +test bar_0 ... ok + +test result: ok.[..] +"))); }); + -- 2.30.2